import { PSControlObjectImpl } from '../pscontrol-object-impl';
import { IPSDEChartLegend } from './ipsdechart-legend';

export class PSDEChartLegendImpl extends PSControlObjectImpl implements IPSDEChartLegend {
  get index(): number {
    return this.M.index;
  }

  get legendPos(): string {
    return this.M.legendPos;
  }

  get showLegend(): boolean {
    return this.M.showLegend;
  }

  get cls(): string {
    return 'PSDEChartLegendImpl';
  }

  instanceof(cls: string): boolean {
    if (cls == 'control.chart.IPSChartLegend' || cls == 'control.chart.IPSDEChartLegend') return true;
    return super.instanceof(cls);
  }
}
